import { Inject, Injectable } from '@nestjs/common'
import appConfig from '../../../config'
import { ConfigType } from '@nestjs/config'

@Injectable()
export class ConfigService {
   constructor(@Inject(appConfig.KEY) public config: ConfigType<typeof appConfig>) {}
   get(key: keyof ConfigType<typeof appConfig>) {
      return this.config[key]
   }
}
